package com.yiqi.liebang.feature.mine.view;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;

import com.suozhang.framework.framework.BaseActivity;
import com.suozhang.framework.utils.T;
import com.yiqi.liebang.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class CertificationFailActivity extends BaseActivity {


    @BindView(R.id.toolbar)
    Toolbar mToolbar;
    private int mType;

    @Override
    protected int attachLayoutRes() {
        return R.layout.activity_certification_fail;
    }

    @Override
    protected void initInjector() {

    }

    @Override
    protected void initData() {
        mType = this.getIntent().getIntExtra("type", 0);
}

    @Override
    protected void initView() {
        initToolBar(mToolbar, "未审核通过", true, true);
    }

    @OnClick(R.id.btn_user_login)
    public void onViewClicked() {
        Intent intent=null;

        switch (mType) {
            case 1:
            case 2:
            case 3:
                intent = new Intent(this, AllCertificationActivity.class);
                break;
            case 4:
                intent = new Intent(this, EnterpriseCertificationActivity.class);
                break;

        }
        startActivity(intent);
        finish();
    }
}
